package com.tzy.nowcoder.leetcode.entity;

import lombok.Data;

import java.util.List;

@Data
public class Department {

    private Integer id;

    private String name;

    private Integer parentId;

    private List<Department> children;

    public Department() {
    }

    public Department(Integer id, String name, Integer parentId) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
    }
}
